<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <span ref="spanNode">普通元素</span>
        <v-damu ref="damuCom"></v-damu>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>

    Vue.config.productionTip = false;

    Vue.component("v-damu",{
        template:"<i ref='iNode'>组件元素</i>",
        mounted(){
            console.log(this.$refs,"v-damu")
        }
    })

    new Vue({
        el:"#app",
        mounted(){
            console.log(this.$refs,"app")
        }
    })
</script>
</html>